package com.flute.icrawler.policy.updatepolicy.bean;

import java.io.Serializable;
import java.util.Set;

import com.flute.icrawler.framework.framework.CrawlUrl;

public class PolicyURL implements Serializable, java.lang.Cloneable {

	private static final long serialVersionUID = 7543789313683342050L;

	private String url;

	private CrawlUrl crawlurl;

	private int urlDepth;

	private String content;

	private long hashcode;

	private long updateTime;

	private int changStatus;

	private Set<String> segmentation;

	public Set<String> getSegmentation() {
		return segmentation;
	}

	public void setSegmentation(Set<String> segmentation) {
		this.segmentation = segmentation;
	}

	public int getUrlDepth() {
		return urlDepth;
	}

	public void setUrlDepth(int urlDepth) {
		this.urlDepth = urlDepth;
	}

	public int getChangStatus() {
		return changStatus;
	}

	public CrawlUrl getCrawlurl() {
		return crawlurl;
	}

	public void setCrawlurl(CrawlUrl crawlurl) {
		this.crawlurl = crawlurl;
	}

	public void setChangStatus(int changStatus) {
		this.changStatus = changStatus;
	}

	public PolicyURL(String url) {
		this.url = url;
	}

	public PolicyURL(String url, int depth, String content) {
		this.url = url;
		this.content = content;
		this.urlDepth = depth;
	}

	public PolicyURL(String url, int urlDepth, String content, CrawlUrl crawlurl) {
		this.url = url;
		this.content = content;
		this.urlDepth = urlDepth;
		this.crawlurl = crawlurl;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(long updateTime) {
		this.updateTime = updateTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public long getHashcode() {
		return hashcode;
	}

	public void setHashcode(long hashcode) {
		this.hashcode = hashcode;
	}
}
